#include "XLog.h"
#include <stdio.h>
#include <stdarg.h>

XLog::XLog(void)
{
}


XLog::~XLog(void)
{
}

void XLog::error(const char *fmt, ...)
{
	va_list ap;
	va_start(ap, fmt);
	const size_t SIZE = 512;
	char buffer[SIZE] = { 0 };
	vsnprintf(buffer, SIZE, fmt, ap);
	va_end(ap);

	printf("%s\n", buffer);
}

void XLog::info(const char *fmt, ...)
{
	va_list ap;
	va_start(ap, fmt);
	const size_t SIZE = 512;
	char buffer[SIZE] = { 0 };
	vsnprintf(buffer, SIZE, fmt, ap);
	va_end(ap);
	printf("%s\n", buffer);
}
